/**
 * 
 */
package be;

import java.io.FileInputStream;
import java.sql.ResultSet;
import java.util.ArrayList;

/**
 * @author Yuuki
 *
 */
public interface backend {
	
	public void connect();
	
	public void disconnect();
	
	public void CreateTable(String tableName, Table variables);
	
	public int Insert(String tableName, InsertList values);
	
	public void storeBLOB(String tableName, FileInputStream file);
	
	/**
	 * REMEMBER TO CALL DISCONNECT IN MIDDLE AFTER USING THIS!
	 * Also, if the insertlists are null, select EVERYTHING!
	 * @param table - the table name
	 * @param Select - * OR name,email, osv
	 * @param where - userid = 2 AND blaba = sldfls
	 * @return
	 */
	public ResultSet getData(String table, InsertList select, InsertList where, String tail);
	
	public void deleteData(String table,InsertList d);
	
	public void UpdateData(String table, InsertList values, InsertList w);
	
	
}
